﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleTestFrameForNFC
{
    [InstrumentInterfaceTypeAnno(InstrumentInterfaceType.GPIB)]
    class ChromaACSource : BaseInstrument
    {
        public void SetOutputAndOn(double voltage, double freq = 50)
        {
            string CMD_SET_OUTPUT_AND_ON = "VOLT " + voltage + ";FREQ " + freq + ";OUTPut ON";
            Write(CMD_SET_OUTPUT_AND_ON);
        }

        public void OutputOFF()
        {
            string CMD_OUTPUT_OFF = "OUTPut OFF";
            Write(CMD_OUTPUT_OFF);
        }
    }
}
